package net.mfjassociates.financial.client.managed.ui;

import com.google.web.bindery.requestfactory.gwt.ui.client.ProxyRenderer;
import net.mfjassociates.financial.client.proxy.EmployeeProxy;
import net.mfjassociates.financial.client.proxy.TransProxy;

public class TransProxyRenderer extends ProxyRenderer<TransProxy> {

    private static net.mfjassociates.financial.client.managed.ui.TransProxyRenderer INSTANCE;

    protected TransProxyRenderer() {
        super(new String[] { "id" });
    }

    public static net.mfjassociates.financial.client.managed.ui.TransProxyRenderer instance() {
        if (INSTANCE == null) {
            INSTANCE = new TransProxyRenderer();
        }
        return INSTANCE;
    }

    public String render(TransProxy object) {
        if (object == null) {
            return "";
        }
        return object.getId() + " (" + object.getId() + ")";
    }
}
